package com.yuqiao.read.design.singleton;

/**
 * 单例模式
 */
public class Singleton1 {

    public static  Singleton1 singleton1;
    private Singleton1(){}

    public static Singleton1 getInstance(){
        if(singleton1 == null){
            singleton1 = new Singleton1();
        }
        return singleton1;
    }

}
